package com.zhiyou100.interface_demo2;

/**
 * 键盘
 */
public class Keyboard implements USB{
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void function() {
        System.out.println("键盘连接usb接口，开始打字......");
    }

    @Override
    public void connect() {
        System.out.println(name + "键盘连入电脑接口");
    }

    @Override
    public void exit() {
        System.out.println(name + "键盘退出电脑接口");
    }
}
